package com.api.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import com.api.common.jwt.TokenIgnore;
import com.api.common.reqres.Request;
import com.api.common.reqres.Response;
import com.api.model.request.RoleListRequest;
import com.api.model.request.RoleMenuListRequest;
import com.api.model.response.NullResponse;
import com.api.model.response.RoleMenuListResponse;
import com.api.service.RoleMenuService;

import io.swagger.annotations.ApiOperation;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author cfp
 * @since 2019-10-22
 */
@TokenIgnore
@RestController
public class RoleMenuController {
	@Autowired
	private RoleMenuService roleMenuService;

	@ApiOperation(notes = "查询角色菜单列表", value = "查询角色菜单列表")
	@PostMapping(value = "/roleMenuList.do")
	public Response<RoleMenuListResponse> roleMenuList(@RequestBody Request<RoleMenuListRequest> request)
			throws Exception {
		return roleMenuService.roleMenuList(request);
	}
}
